﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bind1.aspx.cs" Inherits="weikebuluo.web.wechat.vip.bind1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../all/css/card.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/Zepto.js"></script>
    <title>预约贷款</title>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
        name="viewport">
    <meta name="format-detection" content="telephone=no">
</head>
<body id="carduser" ondragstart="return false;" onselectstart="return false;">
    <section class="body">
    <div class="qiandaobanner">
        <img src="../all/images/VIPtop1.jpg" />
    </div> 
    <div class="cardexplain">
        <ul class="round">
   
            <li class="title mb"><span class="none">员工绑定</span></li>
            <li class="nob">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
                    <tr>
                        <th>真实姓名</th>
                        <td>
                            <input name="vip_name"  type="text" class="px" id="ord_name" value=""  placeholder="请输入您的姓名" /></td>
                    </tr>
                </table>
            </li>
            <li class="nob">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
                    <tr>
                        <th>密码</th>
                        <td>
                            <input name="ord_phone"  type="tel" class="px" value="" id="ord_phone"  placeholder="请输入您的电话" /></td>
                    </tr>
                </table>
            </li>
                   
         
        </ul>
        <div class="footReturn">
            <input type="button" class="submit" value="提交成功" name="保 存" class="txtbtn" id="showcard">
            <div class="window" id="windowcenter">
                <div id="title" class="wtitle">提交成功<span class="close" id="alertclose"></span></div>
                <div class="content">
                    <div id="txt"></div>
                </div>
            </div>
        </div>
    </div>
	    </section>
</body>
</html>
<script src="/Scripts/JQuery.min.js" type="text/javascript"></script>
<script src="/Scripts/Su.common.js" type="text/javascript"></script>
<script type="text/javascript" src="/Scripts/ActionRecord.js"></script>
<script type="text/javascript">
    var wxid = getQueryString("wxid");
    var uid = getQueryString("uid");
    var ActionUrl = "ord.aspx?wxid=" + wxid + "&uid=" + uid;

    $(document).ready(function () {

        $("#showcard").click(function () {
            var ord_name = $("#ord_name").val();
            var ord_phone = $("#ord_phone").val();

            var ord_num = $("#ord_num").val();

            if (ord_name == '' || ord_phone == '' || ord_num == '') {
                alert("所有信息必填！");
                return;
            }

            var submitData = {
                ord_name: ord_name,
                ord_phone: ord_phone,
                ord_num: ord_num,
            };

            $.ajax({
                url: ActionUrl + "&action=bindord",
                type: "post",
                data: submitData,
                success: function (data) {
                    data = eval("(" + data + ")");
                    if (data.error == 200) {
                        alert("提交成功！");
                        window.location.href = "index.aspx?wxid=" + wxid + "&uid=" + uid;
                    } else {
                        $("#txt").html('<span style="color:red;">' + data.error + '</span>');
                    }
                }
            });
        });
    });

    $("#windowclosebutton").click(function () {
        $("#windowcenter").slideUp(500);

    });
    $("#alertclose").click(function () {
        $("#windowcenter").slideUp(500);

    });
</script>

